package com.kolakcc.loljclient.view;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;

import com.kolakcc.loljclient.model.CustomGamePlayer;

public class ChampionSelectView extends KolaView {
	JTextArea teamChatArea;
	JTextField chatField;
	public JPanel championsPanel;
	public JList<CustomGamePlayer> team1List;
	public JList<CustomGamePlayer> team2List;
	
	public ChampionSelectView() {
		this.setTitle("Champions");
		this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		this.setLayout(new BorderLayout());
		
		championsPanel = new JPanel();
		JPanel bottomPanel = new JPanel(new BorderLayout());
		team1List = new JList<CustomGamePlayer>();
		this.add(team1List,BorderLayout.WEST);
		team2List = new JList<CustomGamePlayer>();
		this.add(team2List,BorderLayout.EAST);
		teamChatArea = new JTextArea();
		bottomPanel.add(teamChatArea, BorderLayout.CENTER);
		chatField = new JTextField();
		bottomPanel.add(chatField,BorderLayout.SOUTH);
		this.add(bottomPanel,BorderLayout.SOUTH);
		this.setSize(600,700);
		this.setVisible(true);
	}
}

